import { request } from '@umijs/max';

// 获取激活码列表
export async function getActivationCodeList(params?: Record<string, any>, options?: Record<string, any>) {
  return request('/api/ai_management/activation/list', {
    method: 'GET',
    params: {
      ...params,
    },
    headers: {
      isToken: false,
    },
    ...(options || {}),
  });
}

// 生成激活码
export async function generateActivationCode(num: number) {
  return request(`/api/ai_management/activation/generate/${num}`);
}